package data;

import static org.junit.Assert.*;

import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

public class GeneTest {

	Gene gene;
	
	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
	}

	@Before
	public void setUp() throws Exception {
		gene=new Gene("YLR038C	COX12  OXIDATIVE PHOSPHORYLATIO CYTOCHROME-C OXIDASE, SUBUNIT VIB	1	2	3");
	}

	@Test
	public void testGetVeriables() {
	}

	@Test
	public void testGetId() {
		assertEquals(gene.getId(), "YLR038C");
	}

	@Test
	public void testGetName() {
		assertEquals(gene.getName(), "COX12  OXIDATIVE PHOSPHORYLATIO CYTOCHROME-C OXIDASE, SUBUNIT VIB");
	}
	
	@Test
	public void testGetAverage() {
		assertEquals(gene.getAverage(), 2);		
	}
	

}
